/*
 * @Description: TB6612参考示例,这里使用的是Arduino UNO
 * @Author: diyhome
 * @Gitee: https://gitee.com/jingjiangxueyuan_hmqs
 * @Date: 2019-10-04 17:58:04
 * @LastEditors: diyhome
 * @LastEditTime: 2019-10-04 17:59:33
 */

#include <TB6612.h>

int LPort[7] = {5,3,4,7,8,9,6};     //注意第一个和最后一个必须是PWM引脚

TB6612 LTB = TB6612(LPort);
void setup()
{
  Serial.begin(9600);
}
  
void loop()
{
  LTB.CtrlTB6612(255, 0, 0);
}
